<template>
  <main>
    <h2>姓名： {{ name }}</h2>
    <h2 @click="changeAge">年龄： {{ age }}</h2>
  </main>
</template>
<script lang="ts">
export default {
  name: 'hello',
  setup() {
    let name = '小毅'
    let age = 13

    function changeAge() {
      age += 1
      console.log(age);
    }
    return { name, age, changeAge }
  }
}
</script>
<style scoped></style>
